package com.hai.bean;

import java.util.HashSet;
import java.util.Set;

/**
 * Group entity. @author MyEclipse Persistence Tools
 */

public class Group implements java.io.Serializable {

	// Fields

	private Integer GId;
	private User user;
	private String GName;
	private Set<Friendship> friendships = new HashSet<Friendship>(0);

	// Constructors

	/** default constructor */
	public Group() {
	}

	public Group(User user, String GName){
		this.user = user;
		this.GName = GName;
	}
	
	/** full constructor */
	public Group(User user, String GName, Set<Friendship> friendships) {
		this.user = user;
		this.GName = GName;
		this.friendships = friendships;
	}

	// Property accessors

	public Integer getGId() {
		return this.GId;
	}

	public void setGId(Integer GId) {
		this.GId = GId;
	}


	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}


	public String getGName() {
		return this.GName;
	}

	public void setGName(String GName) {
		this.GName = GName;
	}


	public Set<Friendship> getFriendships() {
		return this.friendships;
	}

	public void setFriendships(Set<Friendship> friendships) {
		this.friendships = friendships;
	}

}